import json


class FuncallResult:

    def __init__(self, msg=None, error=None,content=None):
        self.msg = msg
        self.error = error
        self.content=content

    def to_json(self):
        return json.dumps(self.__dict__,ensure_ascii=False)
